package com.hpe.service;

public class UpWorkflowDataServicePortTypeProxy implements com.hpe.service.UpWorkflowDataServicePortType {
  private String _endpoint = null;
  private com.hpe.service.UpWorkflowDataServicePortType upWorkflowDataServicePortType = null;
  
  public UpWorkflowDataServicePortTypeProxy() {
    _initUpWorkflowDataServicePortTypeProxy();
  }
  
  public UpWorkflowDataServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initUpWorkflowDataServicePortTypeProxy();
  }
  
  private void _initUpWorkflowDataServicePortTypeProxy() {
    try {
      upWorkflowDataServicePortType = (new com.hpe.service.UpWorkflowDataServiceLocator()).getUpWorkflowDataServiceHttpPort();
      if (upWorkflowDataServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)upWorkflowDataServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)upWorkflowDataServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (upWorkflowDataServicePortType != null)
      ((javax.xml.rpc.Stub)upWorkflowDataServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.hpe.service.UpWorkflowDataServicePortType getUpWorkflowDataServicePortType() {
    if (upWorkflowDataServicePortType == null)
      _initUpWorkflowDataServicePortTypeProxy();
    return upWorkflowDataServicePortType;
  }
  
  public java.lang.String updateWorkflowStatus(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException{
    if (upWorkflowDataServicePortType == null)
      _initUpWorkflowDataServicePortTypeProxy();
    return upWorkflowDataServicePortType.updateWorkflowStatus(in0, in1);
  }
  
  
}